package com.smz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smz.entity.PageEntity;
import com.smz.entity.TEnterprise;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TEnterpriseService {


    PageEntity<TEnterprise> findTEnterprisesPage(Integer current);

    List<TEnterprise>  findAllTEnterprises();

    //id查单个
    TEnterprise findTEnterpriseById(@Param("id") Integer id);

    IPage<TEnterprise> findTEnterpriseByContactsEnterpriseName(Integer start, Integer length,
                                                               String contacts, String enterpriseName);

    void modifyTEnterpriseById(@Param("id") Integer id, @Param("accountStatus") String accountStatus);
}
